package com.cangxuan.backend.controller;

import com.cangxuan.backend.entity.Issuer;
import com.cangxuan.backend.entity.Series;
import com.cangxuan.backend.service.IIssuerService;
import com.cangxuan.backend.service.ISeriesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 发行方控制器
 * author:何程城
 */
@RestController
@RequestMapping("series")
@Api("发行方")
public class SeriesController extends BaseController{
    ISeriesService seriesService;

    @Autowired
    public void setSeriesService(ISeriesService seriesService) {
        this.seriesService = seriesService;
    }

    @GetMapping("list")
    @ApiOperation("获取藏品系列列表")
    public Object list(){
        List<Series> list = seriesService.list();
        return success(list);
    }

}
